<el-dialog :close-on-click-modal="false"  :close-on-press-escape="false"  class="dialogStyleBase" :title="mixinEdit_editTitle" width="500px" :visible.sync="mixinEdit_editVisible"
    :before-close="function(){mixinEdit_editBoxClose('editForm')}" append-to-body>
    <div class="dialogStyleBaseBox" v-loading="mixinEdit_loading">
    <el-form ref="editForm" :model="form" label-width="120px" label-position="left">


        <el-form-item label="物流公司" prop="companyName" :rules="{ required: true, message: '请选择 物流公司'}"
            v-if="form.opType==1">

            <el-popover placement="bottom-start" width="240" trigger="click" v-model="popoverVisible">
                <div class="option">
                    <div class="h">
                        <el-input v-model="searchValue" @input="filter"></el-input>
                        <el-button class="but" :disabled="!searchValue" @click="addValue()">添加</el-button>
                    </div>
                    <div class="m">
                        <div class="li" v-for="(item,index) in logisticsFilter" @click="selectItem(item)">
                            {{item.companyName}}</div>
                    </div>
                </div>
                <el-button slot="reference" class="value">
                    <div class="but">
                        <div class="l" v-if="!form.companyName">请选择物流</div>
                        <div class="l" v-if="form.companyName">{{form.companyName}}</div>
                        <div class="r"><i class="el-icon-arrow-down"></i></div>
                    </div>
                </el-button>
            </el-popover>
        </el-form-item>


        <el-form-item label="物流公司名称" prop="companyName" :rules="{ required: true, message: '请输入 物流公司名称'}"
            v-if="form.opType==2">
            <el-input v-model="form.companyName" @input="filter"></el-input>
        </el-form-item>
        <el-form-item label="物流信息网址" prop="website" v-if="form.opType==2">
            <el-input v-model="form.website"></el-input>
        </el-form-item>






    </el-form>
    </div>
    <div slot="footer">
        <el-row>
            <el-col :span="24">
                <el-button :disabled="mixinEdit_loading"  @click="mixinEdit_editBoxClose('editForm')">取 消</el-button>
                <el-button :disabled="mixinEdit_loading"  type="primary" @click="mixinEdit_editFormSubmit({model:'form',ref:'editForm'})">确
                    定</el-button>
            </el-col>
        </el-row>
    </div>
</el-dialog>